<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				txnNo : {	required : true	},
crdNo : {	required : true	},
merNo : {	required : true	},
txnName : {	required : true	},
txnOrder : {	required : true	},
txnSite : {	required : true	},
txnProduct : {	required : true	},
txnNotify : {	required : true	},
txnCur : {	required : true	},
txnLoc : {	required : true,number : true},
txnRate : {	required : true,number : true},
txnAmount : {	required : true,number : true},
txnRemain : {	required : true,number : true},
txnRefund : {	required : true	},
txnRefuse : {	required : true	},
txnFreeze : {	required : true	},
txnLogic : {	required : true	},
txnSettle : {	required : true	},
txnDanger : {	required : true	},
txnVisible : {	required : true	},
txnState : {	required : true	},
txnDate : {	required : true	},
txnRemark : {	required : false	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","#1c3e57");
			},
		});
	});
</script>
</head>
<body>
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="transaction_save.html" method="post" enctype="multipart/form-data">
		<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr><td height="30" align="right">编号 : </td><td><input type="text" placeholder="编号" name="txnNo" id="txnNo" value="<s:property value="transactionBean.txnNo"/>"/></td><td>编号</td></tr>
<tr><td height="30" align="right">卡编号 : </td><td><input type="text" placeholder="卡编号" name="crdNo" id="crdNo" value="<s:property value="transactionBean.crdNo"/>"/></td><td>卡编号</td></tr>
<tr><td height="30" align="right">商户编号 : </td><td><input type="text" placeholder="商户编号" name="merNo" id="merNo" value="<s:property value="transactionBean.merNo"/>"/></td><td>商户编号</td></tr>
<tr><td height="30" align="right">名称 : </td><td><input type="text" placeholder="名称" name="txnName" id="txnName" value="<s:property value="transactionBean.txnName"/>"/></td><td>名称</td></tr>
<tr><td height="30" align="right">商户订单号 : </td><td><input type="text" placeholder="商户订单号" name="txnOrder" id="txnOrder" value="<s:property value="transactionBean.txnOrder"/>"/></td><td>商户订单号</td></tr>
<tr><td height="30" align="right">来源网站 : </td><td><input type="text" placeholder="来源网站" name="txnSite" id="txnSite" value="<s:property value="transactionBean.txnSite"/>"/></td><td>来源网站</td></tr>
<tr><td height="30" align="right">产品信息 : </td><td><input type="text" placeholder="产品信息" name="txnProduct" id="txnProduct" value="<s:property value="transactionBean.txnProduct"/>"/></td><td>产品信息</td></tr>
<tr><td height="30" align="right">商户通知地址 : </td><td><input type="text" placeholder="商户通知地址" name="txnNotify" id="txnNotify" value="<s:property value="transactionBean.txnNotify"/>"/></td><td>商户通知地址</td></tr>
<tr><td height="30" align="right">原交易币种 : </td><td><input type="text" placeholder="原交易币种" name="txnCur" id="txnCur" value="<s:property value="transactionBean.txnCur"/>"/></td><td>原交易币种</td></tr>
<tr><td height="30" align="right">原交易金额 : </td><td><input type="text" placeholder="原交易金额" name="txnLoc" id="txnLoc" value="<s:if test="transactionBean.txnLoc!=null"><s:text name="global.format.number"><s:param value="transactionBean.txnLoc"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>原交易金额</td></tr>
<tr><td height="30" align="right">实时汇率 : </td><td><input type="text" placeholder="实时汇率" name="txnRate" id="txnRate" value="<s:if test="transactionBean.txnRate!=null"><s:text name="global.format.number"><s:param value="transactionBean.txnRate"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>实时汇率</td></tr>
<tr><td height="30" align="right">交易金额 : </td><td><input type="text" placeholder="交易金额" name="txnAmount" id="txnAmount" value="<s:if test="transactionBean.txnAmount!=null"><s:text name="global.format.number"><s:param value="transactionBean.txnAmount"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>交易金额</td></tr>
<tr><td height="30" align="right">交易余额 : </td><td><input type="text" placeholder="交易余额" name="txnRemain" id="txnRemain" value="<s:if test="transactionBean.txnRemain!=null"><s:text name="global.format.number"><s:param value="transactionBean.txnRemain"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>交易余额</td></tr>
<tr><td height="30" align="right">退款状态 : </td><td><s:radio id="txnRefund" name="txnRefund" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnRefund"></s:radio></td><td>退款状态</td></tr>
<tr><td height="30" align="right">拒付状态 : </td><td><s:radio id="txnRefuse" name="txnRefuse" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnRefuse"></s:radio></td><td>拒付状态</td></tr>
<tr><td height="30" align="right">冻结状态 : </td><td><s:radio id="txnFreeze" name="txnFreeze" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnFreeze"></s:radio></td><td>冻结状态</td></tr>
<tr><td height="30" align="right">发货状态 : </td><td><s:radio id="txnLogic" name="txnLogic" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnLogic"></s:radio></td><td>发货状态</td></tr>
<tr><td height="30" align="right">结算状态 : </td><td><s:radio id="txnSettle" name="txnSettle" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnSettle"></s:radio></td><td>结算状态</td></tr>
<tr><td height="30" align="right">安全状态 : </td><td><s:radio id="txnDanger" name="txnDanger" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnDanger"></s:radio></td><td>安全状态</td></tr>
<tr><td height="30" align="right">隐藏状态 : </td><td><s:radio id="txnVisible" name="txnVisible" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnVisible"></s:radio></td><td>隐藏状态</td></tr>
<tr><td height="30" align="right">交易状态 : </td><td><s:radio id="txnState" name="txnState" list="#{'0':'无效','1':'有效'}"  value="transactionBean.txnState"></s:radio></td><td>交易状态</td></tr>
<tr><td height="30" align="right">发生日期 : </td><td><input type="text" placeholder="发生日期" name="txnDate" id="txnDate" value="<s:if test="transactionBean.txnDate!=null"><s:text name="global.format.date"><s:param value="transactionBean.txnDate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>发生日期</td></tr>
<tr><td height="30" align="right">交易备注 : </td><td><input type="text" placeholder="交易备注" name="txnRemark" id="txnRemark" value="<s:property value="transactionBean.txnRemark"/>"/></td><td>交易备注</td></tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
	</form>
    </div>
</body>
</html>

